﻿using UnityEngine;

public class AStarNode {
	/// <summary>
	/// 数组下标
	/// </summary>
	public IntVec2 Index;

	/// <summary>
	/// 所在位置
	/// </summary>
	public Vector3 Position;

	public bool CanMove = true;
	
	/// <summary>
	/// 移动代价
	/// </summary>
	public int GCost;

	/// <summary>
	/// 估价
	/// </summary>
	public int HCost;

	public AStarNode Parent;

	public int FCost {
		get { return GCost + HCost; }
	}
}
